package com.woniuxy.yoga.progress.model.exception;

public enum ProgressExceptionCode {
    PROGRESS_EXCEPTION_CODE_NO_CARD(90001, "体验卡不存在"),
    PROGRESS_EXCEPTION_CODE_CARD_REPEAT(90002, "重复添加卡进度"),
    PROGRESS_EXCEPTION_CODE_USER_STATE_WRONG(90003, "用户状态有误"),
    PROGRESS_EXCEPTION_CODE_ORDER_STATE_WRONG(90004, "订单状态有误"),
    PROGRESS_EXCEPTION_CODE_CARD_STATE_WRONG(90006, "体验卡状态有误"),
    PROGRESS_EXCEPTION_CODE_CARD_NOT_EXIST(90007, "当前卡不存在"),
    PROGRESS_EXCEPTION_CODE_LIFE_CARD_TRANSFORMED(90008, "当前终身卡已经转让过了，请勿重复转让"),
    PROGRESS_EXCEPTION_CODE_PRI_CARD_NOT_USED(90009, "当前私教卡未完成"),
    PROGRESS_EXCEPTION_CODE_SUB_CARD_NOT_USED(90010, "当前次卡未完成"),
    PROGRESS_EXCEPTION_CODE_TEA_CARD_NOT_USED(90011, "当前团课未完成"),
    PROGRESS_EXCEPTION_CODE_TEA_VACATE_NOT_EXIST(90012, "请假信息不存在"),
    PROGRESS_EXCEPTION_CODE_TEA_VACATE_STATE_WRONG(90013, "请假状态有误"),
    PROGRESS_EXCEPTION_CODE_COACH_STATE_WRONG(90014, "教练状态有误"),
    PROGRESS_EXCEPTION_CODE_TEA_CARD_USED(90011, "当前团课状态有误"),
    PROGRESS_EXCEPTION_CODE_SUB_CARD_COUNT_STACK(90012, "次卡次数超过限制"),
    PROGRESS_EXCEPTION_CODE_PRI_CARD_COUNT_STACK(90013, "私教卡次数超过限制"),
    ;


    private final Integer code;
    private final String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ProgressExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
